package Io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-04-05
 * Time: 16:30
 */
public class test4 {
    public static void main(String[] args) throws IOException {
        try (OutputStream os = new FileOutputStream("666.txt")){
            os.write('h');
            os.write('e');
            os.write('l');
            os.write('l');
            os.write('o');
os.flush();
        }
    }
}
